/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scheduletask;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Mostafa
 */
public class Test {
    
    
//    public static void main(String [] args)
//    {
//        try {
//           //  Runtime.getRuntime().exec("edit");
//              File f=new File("d:\\mostafaaaaa");
//                    f.mkdir();
//                   
//                    String batch="cd d:\\mostafaaaaa \n";
//                    String currentdirectory=System.getProperty("user.dir");
//                    batch+=currentdirectory+"\\7z e E:\\New folder\\ObsoleteTI.txt.Z";
//                    batch+="javaw -jar  .\\Myapplication.jar   mostafa \n";
//                  batch+="del /f .\\f.bat   \n ";
//                    File batfile=new File(".\\f.bat");
//                    FileWriter writer=new FileWriter(batfile);
//                    writer.write(batch);
//                    writer.close();
//                    
//                       Runtime run=Runtime.getRuntime();
//                        run.exec("cmd /c start .\\zzzzz.bat");
//        } catch (IOException ex) {
//            Logger.getLogger(Test.class.getName()).log(Level.SEVERE, null, ex);
//        }
//    }
    
}
